# ESP32项目根CMakeLists.txt
# 指定最小CMake版本并包含所有组件路径

# 指定最小CMake版本
cmake_minimum_required(VERSION 3.16)

# 包含ESP-IDF构建系统
include($ENV{IDF_PATH}/tools/cmake/project.cmake)

# 设置项目名称
project(esp32_project)

# 指定额外的组件目录
set(EXTRA_COMPONENT_DIRS 
    components
    components/driver_dht11
    components/utils
)

# 设置默认分区表文件
set(PARTITION_TABLE_CUSTOM_FILENAME ${CMAKE_SOURCE_DIR}/partition_table/partition_table.csv)